package com.CST.mapper.cst.ys;

import com.CST.dto.ys.YsDetailDTO;
import com.CST.entity.ys.YsAccountDetail;
import com.CST.vo.ys.AccountDetailVO;
import com.CST.vo.ys.ExpenseVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qtx
 * @since 2023-04-21
 */
@Mapper
public interface YsAccountDetailMapper extends BaseMapper<YsAccountDetail> {

    List<AccountDetailVO> listAccountDetails(YsDetailDTO dto);

    List<ExpenseVO> listExpense(YsDetailDTO dto);

    AccountDetailVO getAccountByNum(@Param("num") Integer num,
                                    @Param("yard") Integer yard,
                                    @Param("type") Integer type);

    List<AccountDetailVO> listExpenseDetails(YsDetailDTO dto);

    Integer selectMaxId();

    AccountDetailVO getAccountById(Long id);
}
